#include "MPC5646C.h"

extern unsigned long CAN0_SOURCE_ID;
extern unsigned long CAN0_TARGET_ID;
extern uint32_t CAN0_RxCODE;               /* Received message buffer code */
extern uint32_t CAN0_RxID;                 /* Received message ID */
extern uint32_t CAN0_RxLENGTH;             /* Recieved message number of data bytes */
extern uint8_t  CAN0_RxDATA[8];            /* Received message data string*/
extern uint32_t CAN0_RxTIMESTAMP;          /* Received message time */
extern uint8_t  CAN0_TxDATA[8];            /* Transimit message data string*/ 

void CAN0_Init(void);
void CAN0_TX(unsigned long ID, unsigned char *pTxData, unsigned char nbytes);